{strip}
<table cellspacing="0" width="100%" style="margin:3px 0 0 0; border-top:1px solid white; border-bottom:1px solid white">
	<tr>
		<td style="text-align:center" height="25"><a href="#" target="_self" onClick="checkboxStatus('perm_array',true); return false;">{t t="Žymėti visus"}</a></td>
		<td style="border-left:1px solid #fff; text-align:center "><a href="#" target="_self" onClick="checkboxStatus('perm_array',false); return false;">{t t="Nuimti žymėjimą"}</a></td>
	</tr>
</table>
{ext->class_function class="docum" func="get_all_modules" user=$smarty.get.id assign="modules_list"}
{literal}
<style type="text/css">
	.this .l_g {
		width:100%; border-top:1px solid white; border-bottom:1px solid #D6DBDE; font-weight:bold; padding:7px 0 9px 10px;
	}
	.this .l_sg_t{
		border-top:1px solid white; border-bottom:1px solid #D6DBDE; width:100%;
	}
	.this .l_sg_t .td1{
		width:30px; text-align:center
	}
	.this .l_sg_t .td2{
		padding:4px 0 4px 0
	}
</style>
{/literal}
<span class="this">
<table width="100%" cellpadding="0" cellspacing="0" style="margin:3px 0 0 0; background-color:#FFFFFF">
	<tr>
		<td height="25" style="padding:0 0 0 5px "><strong>{t t='Dokumentai'}</strong></td>
	</tr>
</table>
{ext->class_function class="docum" func="get_all_product_groups" assign="groups_list"}
{ext->aasort array=$groups_list args="+name" assign="groups_list2"}
{assign var="groups_list" value=$groups_list2}
{foreach from=$groups_list key="key" item="el"}		
	{if $el.parent == 0}	
	<div class="l_g">{$el.name}</div>	
	{foreach from=$groups_list key="key2" item="el2"}		
		{if $el2.parent == $el.id}
		{assign var="el2_id" value=$el2.id}		
		<table cellpadding="0" cellspacing="0" class="l_sg_t">
			<tr>		
				<td class="td1"><input type="checkbox" name="perm_array[group_{$el2_id}]" value="{$el2_id}" {if $modules_list.product_groups.$el2_id==1}checked{/if}></td>			
				<td class="td2">{$el2.name}</td>				
			</tr>
		</table>
		{/if}
	{/foreach}
	{/if}
{/foreach}
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
</span>
{/strip}